package de.tabuma.pm.project.entity;

import javax.jdo.*;
import javax.jdo.annotations.*;

/**
 * @author $Author: $
 * @version $Revision: $
 * @since $Date: $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Project {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    @Persistent
    String description;
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }

    @Persistent
    int customerId;
    public int getCustomerId() {
        return customerId;
    }
    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    @Persistent
    Integer startPageId;
    public Integer getStartPageId() {
        if(this.startPageId==null) {
            return new Integer(0);
        }
        return startPageId;
    }
    public void setStartPageId(Integer startPageId) {
        this.startPageId = startPageId;
    }
}
